package com.benson.generic;

import java.util.ArrayList;

import com.benson.generic.Tuple.ThreeTuple;

public class TupleList<A,B,C> extends ArrayList<ThreeTuple<A,B,C>> {

	public static void main(String[] args) {
		TupleList<String,String,String> list = new TupleList<String, String, String>();
		
		list.add(next("one1","one2","one3"));
		list.add(next("two1","two2","two3"));
		
		for(ThreeTuple<String,String,String> item:list){
			System.out.println(item);
		}
	}
	
	static <D,E,F> ThreeTuple<D, E, F> next(D first,E second,F three){
		return new ThreeTuple<D, E, F>(first, second, three);
	}
}
